package com.castle.fortress.admin.oa.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * 日数据报表 实体类
 *
 * @author whc
 * @since 2022-11-04
 */
@Data
@TableName("oa_day_statistics")
public class DayStatisticsEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 日期
	*/
	private String date;
	/**
	 * 用户
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long userId;
	/**
	 * 部门
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long deptId;
	/**
	 * 所属规则
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long settId;
	private Integer status;
	@TableField(exist = false)
	/**
	* 关联的树形名称
	*/
	private String deptIdName;

	/**
	 * 关联用户名
	 */
	@TableField(exist = false)
	private String username;

	/**
	 * 管理员筛选部门用
	 */
	@TableField(exist = false)
	private List<Long> authDept;

	/**
	 * 关联设置
	 */
	@TableField(exist = false)
	private String setName;

}
